<?php

namespace app\common\enum;

class BusinessType
{
    const OTHER = 0;
    const INSERT = 1;
    const UPDATE = 2;
    const DELETE = 3;
    const EXPORT = 4;
    const IMPORT = 5;
    const CLEAR = 6;

    public static function getDescription($value): string
    {
        $map = [
            self::OTHER => '其他',
            self::INSERT => '新增',
            self::UPDATE => '修改',
            self::DELETE => '删除',
            self::EXPORT => '导出',
            self::IMPORT => '导入',
            self::CLEAR => '清空',
        ];
        return $map[$value];
    }
}